package com.example.soa_exp2.common;

import com.example.soa_exp2.domain.Equipment;
import lombok.Data;
import org.springframework.hateoas.RepresentationModel;

@Data
public class EquipmentModel extends RepresentationModel<EquipmentModel> {

    private final Equipment content;

    private final String message;

    public EquipmentModel(Equipment equipment){
        this.content = equipment;
        this.message = null;
    }

    public EquipmentModel(Equipment equipment, String message){
        this.content = equipment;
        this.message = message;
    }
}
